<%@ Page Language="vb" AutoEventWireup="false" Codebehind="adm_edituser.aspx.vb" Inherits="georgia_globaltp.adm_edituser" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>adm_edituser</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="JavaScript">
		ns4 = (document.layers)? true:false

		function HideEmailFieldAsterisk(val) {
			if (ns4) {
				if (val=="True") {
					document.layers['divEmailFieldAsterisk'].visibility = "hide";
				} else {
					document.layers['divEmailFieldAsterisk'].visibility = "show";
				}
			} else {
				if (val=="True") {
					document.getElementById('divEmailFieldAsterisk').style.visibility = "hidden";
				} else {
					document.getElementById('divEmailFieldAsterisk').style.visibility = "visible";
				}
			}
		}
		</script>
	</HEAD>
	<body leftMargin=0 topMargin=0 MS_POSITIONING="GridLayout">
		<form id="y" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td id="header" colSpan="2">
						<table style="FILTER: progid: DXImageTransform.Microsoft.Gradient(endColorstr='#FFFFFF', startColorstr='#C0CFE2',gradientType='0'); WIDTH: 480px; HEIGHT: 312px"
							borderColor="#004080" cellSpacing="0" cellPadding="3" align="center" border="1">
							<tr>
								<td>Complete all information and click Update at the bottom of the form to edit 
									this User. Note that all fields with an asterisk (<img src="<%=imgpath%>/required.gif" border="0" alt="required field">) 
									are required.</td>
								<%	if len(Msg) > 0 then%>
								<td class="error"><%=Msg%></td>
								<%	end if%>
							</tr>
							<tr>
								<td style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-WEIGHT: bold; PADDING-BOTTOM: 5px; COLOR: #ffffff; PADDING-TOP: 5px; BACKGROUND-COLOR: #294984"
									colSpan="2">Edit User</td>
							</tr>
							<tr>
								<td>
									<table class="minorbox" cellSpacing="0" width="100%">
										<tr>
											<td>User ID :
											</td>
											<td><asp:textbox id="sUID" tabIndex="1" Runat="server" maxlength="50"></asp:textbox></td>
										</tr>
										<tr>
											<td nowrap>Account ID :
											</td>
											<td><asp:textbox id="sVID" tabIndex="1" Runat="server" maxlength="50"></asp:textbox></td>
										</tr>
										<%'--- CHECKS CURRENTLY LOGGED IN USER FOR SU
							if aUserSession(cCOMPANY_ID) = "0" then %>
										<tr>
											<td>System :</td>
											<td><asp:textbox id="company" tabIndex="1" Runat="server" maxlength="50"></asp:textbox></td>
										</tr>
										<%end if%>
										<tr>
											<td>Password :
											</td>
											<td><asp:textbox id="password" tabIndex="1" Runat="server" maxlength="15" TextMode="Password"></asp:textbox><img src="TheHeader1.imgpath/required.gif" border="0" alt="required field"></td>
										</tr>
										<tr>
											<td nowrap>First Name :
											</td>
											<td><asp:textbox id="firstname" tabIndex="1" Runat="server" maxlength="30"></asp:textbox></td>
										</tr>
										<tr>
											<td nowrap>Last Name :
											</td>
											<td><asp:textbox id="lastname" tabIndex="1" Runat="server" maxlength="30"></asp:textbox></td>
										</tr>
										<tr>
											<td>Location :
											</td>
											<td><asp:textbox id="location" tabIndex="1" Runat="server" maxlength="30"></asp:textbox></td>
										</tr>
										<tr>
											<td nowrap>Contact Phone :
											</td>
											<td><asp:textbox id="Phone" tabIndex="1" Runat="server" maxlength="30"></asp:textbox></td>
										</tr>
										<tr>
											<td>Extention :
											</td>
											<td><asp:textbox id="Ext" tabIndex="1" Runat="server" maxlength="50"></asp:textbox></td>
										</tr>
										<tr>
											<%
				'//////////////////////////////////////////////////
				'--- BEGIN DISPLAY SUPERVISOR
				'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
				' --- SUPERVISOR IS BLANK, NOT AN 'E' OR EDITED USER IS THE SAME AS THE LOGGED IN USER
				
			'//////////////////////////////////////////////////
			' END DISPLAY SUPERVISOR
			'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
			
								Response.Write(DispSupervisor())%>
										</tr>
										<tr>
											<td>Email Address :
											</td>
											<td><asp:textbox id="Email" tabIndex="1" Runat="server" maxlength="50"></asp:textbox>
												<span id="divEmailFieldAsterisk" style="POSITION:relative"><img src="TheHeader1.imgpath/required.gif" border="0" alt="required field"></span></td>
										</tr>
										<tr>
											<td>Active :</td>
											<td>
												<asp:checkbox ID="ch" runat="server" Checked="True"></asp:checkbox>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center">
												<hr size="1" width="100%">
												<input type="hidden" name="RoleIDOld" value="<%=RoleID%>"> <input type="hidden" name="uid" value="<%=sUID%>">
												<input type="hidden" name="vid" value="<%=sVID%>"> <input type="hidden" name="ed">
												<%if aUserSession(cCOMPANY_ID) = "0" then %>
												<input type="hidden" name="cid" value="<%=nCID%>">
												<%
					end if %>
											</td>
										</tr>
										<tr>
											<td><asp:Button ID="btnUpdate" Runat="server" Text="Update"></asp:Button></td>
											&nbsp;&nbsp;
											<%	if bLockStatus then %>
											<td><asp:Button ID="btnUnloc" Runat="server" Text="Unlock"></asp:Button></td>
											<!--<input type="submit" onclick="document.y.ed.value='UNLO'" value="Unlock">&nbsp;&nbsp;-->
											<%	end if %>
											<td><asp:Button ID="btnCancel" Runat="server" Text="Cancel"></asp:Button></td>
											<%	if sVID <> "000000" then %>
											<td><asp:Button ID="btnEditTerm" Runat="server" Text="Edit Terminal Associations"></asp:Button></td>
											<!--<input type="button" onclick="edittid()" value="Edit Terminal Associations">--> 
											&nbsp;&nbsp;
											<%	end if

					if sVID <> "000000" and sUID <> sVID then %>
											<td><asp:Button ID="btnEditRights" Runat="server" Text="Edit Rights"></asp:Button></td>
											<%
					end if %>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
